function router(app) {
  //获取用户列表
  app.router.post('/getUserList', app.controller.userManagement.list),
    //删除用户
    app.router.get(
      '/userManagement/deleteUser',
      app.controller.userManagement.deleteUser
    );
  // 添加用户
  app.router.post(
    '/userManagement/addUser',
    app.controller.userManagement.addUser
  );
  //修改用户信息
  app.router.post(
    '/userManagement/changeUserInfo',
    app.controller.userManagement.changeUser
  );
  // 创建分组
  app.router.post(
    '/userManagement/createGroup',
    app.controller.userManagement.createGroup
  );

  // 加入分组
  app.router.post(
    '/userManagement/addGroup',
    app.controller.userManagement.addGroup
  );
  // 修改绑定信息
  app.router.post(
    '/userManagement/changeBind',
    app.controller.userManagement.changeBind
  );
  //分组下拉
  app.router.get(
    '/userManagement/getGroupList',
    app.controller.userManagement.getGroupList
  );

  // 绑定ONU
  app.router.post(
    '/userManagement/bindingONU',
    app.controller.userManagement.bindingONU
  );

  // unbinding ONU
  app.router.get(
    '/userManagement/unbindingONU',
    app.controller.userManagement.unBindingOUN
  );
  // 删除分组
  app.router.get(
    '/userManagement/deleteGroup',
    app.controller.userManagement.deleteGroup
  );
}
module.exports = {
  router,
};
